package com.fenghongzhang.day003_mvp;

import com.fenghongzhang.day003_mvp.mvp.contract.FoodContract;
import com.fenghongzhang.day003_mvp.mvp.model.FoodModel;

import dagger.Module;
import dagger.Provides;

@Module
public class FoodModule {

    private FoodContract.IFoodView mView;

    public FoodModule(FoodContract.IFoodView mView) {
        this.mView = mView;
    }

    @Provides
    public FoodContract.IFoodModel getIFoodModel(){
        return new FoodModel();
    }

    @Provides
    public FoodContract.IFoodView getIFoodView(){
        return mView;
    }

}
